/* 
 * File:   analisys.h
 * Author: gustavo
 *
 * Created on July 31, 2011, 4:54 AM
 */

#ifndef ANALISYS_H
#define	ANALISYS_H

#ifdef	__cplusplus
extern "C" {
#endif
	
	void image_label(Matrix * Mat, Matrix ** Label, int * count);

	void image_select4(Image Gray, int x, int y, Image ** Sel);
	void image_select8(Image Gray, int x, int y, Image ** Sel);

	void image_label4(Image Gray, Image ** Label, int * count);
	void image_label8(Image Gray, Image ** Label, int * count);

	void image_histogram(Image * Gray, Matrix ** Hist, int normalized);
	
	void image_get_otsu_threshold(const Matrix * Hist, double * Th);

#ifdef	__cplusplus
}
#endif

#endif	/* ANALISYS_H */

